package com.xcy.quickhand.util.redis;

import java.net.Authenticator;
import java.net.PasswordAuthentication;

/**
 * @author xcy
 * @version V1.0
 * @description 代理验证信息
 * @date 2023/2/26 1:16
 */
public class ProxyAuthenticator extends Authenticator  {
    private String user, password;

    public ProxyAuthenticator(String user, String password) {
        this.user     = user;
        this.password = password;
    }

    protected PasswordAuthentication getPasswordAuthentication() {
        return new PasswordAuthentication(user, password.toCharArray());
    }
}
